﻿<?php
/**
 *
 *@author kinet
 *@time 2010-9-12 to 2010-9-12
 *@version 1.2
 *@todo 
 */

class db_obj_problem_test_right  extends db_obj{

	public function __construct( $db ){
		
		parent::__construct( $db , 'problem_test_right' , 'problem_no' );
		
		$this->add('problem_no' , '' );
		$this->add('test0' , '' );
		$this->add('test1' , '' );
		$this->add('test2' , '' );
		$this->add('test3' , '' );
		$this->add('test4' , '' );
		$this->add('test5' , '' );	
		$this->add('test6' , '' );	
		$this->add('test7' , '' );
		$this->add('test8' , '' );
		$this->add('test9' , '' );		
	    $this->add('right0' , '' );
		$this->add('right1' , '' );
		$this->add('right2' , '' );
		$this->add('right3' , '' );
		$this->add('right4' , '' ); 
		$this->add('right5' , '' );
		$this->add('right6' , '' );
		$this->add('right7' , '' );
		$this->add('right8' , '' ); 
		$this->add('right9' , '' );
 
	
   
	}
	function admin_exists( $admin ){

		return $this->load( 'admin' , $admin );
	}	
}
